package com.banyuan.HomeWork.ArrayTest;

public class QuestionSix {
    public static void main(String[] args) {
        for (int i = 1; i < +100; i++) {
            if (i % 3 == 0) {
                System.out.print(i + " ");
            }
        }
        System.out.println();

        int j = 1;
        while (j <= 100) {
            if (j % 3 == 0) {
                System.out.print(j + " ");
            }
            j++;
        }
        System.out.println();

        int k = 1;
        do {
            if (k % 3 == 0) {
                System.out.print(k + " ");
            }
            k++;
        }while(k <= 100);
    }
}
